package controllers;

import java.awt.event.ActionEvent;

import system.View;

public class ClerkMenuController extends AbstractMenuController {

	private InStorePurchaeController in_store_purchase;
	private InStoreReturnController in_store_return;
    public ClerkMenuController(View v) {
		super(v);
		in_store_purchase = new InStorePurchaeController(v);
		in_store_return = new InStoreReturnController(v);
	}

    @Override
    public void actionPerformed(ActionEvent e) {
        String actionCommand = e.getActionCommand();

        if (actionCommand.equals("Process Purchase")) 
        	in_store_purchase.actionPerformed(e);
        else if (actionCommand.equals("Process Return"))
        	in_store_return.actionPerformed(e);
    }

    @Override
    public void show() {
        // TODO Auto-generated method stub
    }
}

